Skip to content

Conversation

@sravankumar985
Copy link
Contributor

@sravankumar985 sravankumar985 commented Mar 22, 2025

Summary

This to Add HTTP call tab and console tabs under Configure ADR margin to change ADR margin using API call.

Screenshots

New:

New Screenshots

image
image
image

Changes

Added a new HTTP tab to configure the ADR margin using an API call.

Notes for Reviewers

...

Checklist

  • Scope: The referenced issue is addressed, there are no unrelated changes.
  • Run Locally: Verified that the docs build using make server, posted screenshots, verified external links. Test with HUGO_PARAMS_SEARCH_ENABLED=true if style changes will affect the search bar.
  • New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
  • Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
  • Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

Additional Details of Testing of the API call

  • Before the API call executing

image

req.json file content

{
  "end_device":{
    "mac_settings":{
      "adr":{
        "dynamic":{
          "margin":18
        }
      }
    }
  },
  "field_mask":{
    "paths":["mac_settings.adr"]
  }
}

API call

 curl -v -X 'PUT' -H "Content-Type: application/json" -H "Authorization: Bearer $API-key" -d @./req.json http://<server-address>/api/v3/ns/applications/example1/devices/test-uuno |jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* 
{
  "ids": {
    "device_id": "test-uuno",
    "application_ids": {
      "application_id": "example1"
    },
    "dev_eui": "xxxxxx",
    "join_eui": "xxxxxx"
  },
  "created_at": "2025-02-26T12:44:44.756069959Z",
  "updated_at": "2025-03-21T15:02:06.156240411Z",
  "mac_settings": {
    "adr": {
      "dynamic": {
        "margin": 18
      }
    }
  }
}

  • After the API call

image

@KrishnaIyer KrishnaIyer merged commit d1e624a into TheThingsIndustries:master Apr 16, 2025
1 check passed
@sravankumar985 sravankumar985 deleted the doc/http-console-adr-margin branch April 22, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants